/**
 * 
 */
package de.cbf.cam.dsa.facet.talent.persister.db4o.client.service;

import org.osgi.framework.Bundle;
import org.osgi.framework.ServiceFactory;
import org.osgi.framework.ServiceRegistration;

import de.cbf.cam.dsa.facet.talent.persister.db4o.client.ServicePersister_FacetTalent_Db4o;
import de.cbf.cam.dsa.facet.talent.service.persister_interface.IServicePersister_FacetTalent;

/**
 * @author Nebelritter
 *
 */
public class ServiceFactoryPersister_FacetTalent_Db4o implements ServiceFactory<IServicePersister_FacetTalent> {

	protected ServicePersister_FacetTalent_Db4o service;
	
	
	@Override
	public IServicePersister_FacetTalent getService(	Bundle bundle,
			ServiceRegistration<IServicePersister_FacetTalent> registration) {	
		if(service == null){
			service = new ServicePersister_FacetTalent_Db4o();	
		}
		return 	service;
	}

	@Override
	public void ungetService(Bundle bundle,
			ServiceRegistration<IServicePersister_FacetTalent> registration,
			IServicePersister_FacetTalent service) {
		service = null;
	}

}
